class GetCheckQuestionByIdBean {
  bool success;
  String message;
  int code;
  Result result;
  int timestamp;

  GetCheckQuestionByIdBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  GetCheckQuestionByIdBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    result =
    json['result'] != null ? new Result.fromJson(json['result']) : null;
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  int id;
  String createTime;
  String questionAddress;
  String questionDescription;
  String videoUrl;
  String voiceUrl;
  String sitePhotosUrl;
  int questionType;
  String questionStr;
  Null solveResults;
  Null solveUser;
  Null solveUserName;
  int status;
  String statusStr;
  int isAllocated;
  String isAllocatedStr;
  Null allocatedDate;
  Null solveDate;
  double lat;
  double lon;
  int checkId;
  String checkName;
  int areaId;
  String areaName;
  int deviceId;
  String deviceName;
  int projectId;
  String projectName;
  int projectResultId;
  String projectResultName;
  int inspectorId;
  String checkUserName;
  String checkUser;

  Result(
      {this.id,
        this.createTime,
        this.questionAddress,
        this.questionDescription,
        this.videoUrl,
        this.voiceUrl,
        this.sitePhotosUrl,
        this.questionType,
        this.questionStr,
        this.solveResults,
        this.solveUser,
        this.solveUserName,
        this.status,
        this.statusStr,
        this.isAllocated,
        this.isAllocatedStr,
        this.allocatedDate,
        this.solveDate,
        this.lat,
        this.lon,
        this.checkId,
        this.checkName,
        this.areaId,
        this.areaName,
        this.deviceId,
        this.deviceName,
        this.projectId,
        this.projectName,
        this.projectResultId,
        this.projectResultName,
        this.inspectorId,
        this.checkUserName,
        this.checkUser});

  Result.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createTime = json['createTime'];
    questionAddress = json['questionAddress'];
    questionDescription = json['questionDescription'];
    videoUrl = json['videoUrl'];
    voiceUrl = json['voiceUrl'];
    sitePhotosUrl = json['sitePhotosUrl'];
    questionType = json['questionType'];
    questionStr = json['questionStr'];
    solveResults = json['solveResults'];
    solveUser = json['solveUser'];
    solveUserName = json['solveUserName'];
    status = json['status'];
    statusStr = json['statusStr'];
    isAllocated = json['isAllocated'];
    isAllocatedStr = json['isAllocatedStr'];
    allocatedDate = json['allocatedDate'];
    solveDate = json['solveDate'];
    lat = json['lat'];
    lon = json['lon'];
    checkId = json['checkId'];
    checkName = json['checkName'];
    areaId = json['areaId'];
    areaName = json['areaName'];
    deviceId = json['deviceId'];
    deviceName = json['deviceName'];
    projectId = json['projectId'];
    projectName = json['projectName'];
    projectResultId = json['projectResultId'];
    projectResultName = json['projectResultName'];
    inspectorId = json['inspectorId'];
    checkUserName = json['checkUserName'];
    checkUser = json['checkUser'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['createTime'] = this.createTime;
    data['questionAddress'] = this.questionAddress;
    data['questionDescription'] = this.questionDescription;
    data['videoUrl'] = this.videoUrl;
    data['voiceUrl'] = this.voiceUrl;
    data['sitePhotosUrl'] = this.sitePhotosUrl;
    data['questionType'] = this.questionType;
    data['questionStr'] = this.questionStr;
    data['solveResults'] = this.solveResults;
    data['solveUser'] = this.solveUser;
    data['solveUserName'] = this.solveUserName;
    data['status'] = this.status;
    data['statusStr'] = this.statusStr;
    data['isAllocated'] = this.isAllocated;
    data['isAllocatedStr'] = this.isAllocatedStr;
    data['allocatedDate'] = this.allocatedDate;
    data['solveDate'] = this.solveDate;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    data['checkId'] = this.checkId;
    data['checkName'] = this.checkName;
    data['areaId'] = this.areaId;
    data['areaName'] = this.areaName;
    data['deviceId'] = this.deviceId;
    data['deviceName'] = this.deviceName;
    data['projectId'] = this.projectId;
    data['projectName'] = this.projectName;
    data['projectResultId'] = this.projectResultId;
    data['projectResultName'] = this.projectResultName;
    data['inspectorId'] = this.inspectorId;
    data['checkUserName'] = this.checkUserName;
    data['checkUser'] = this.checkUser;
    return data;
  }
}